package Java多线程和并发.Java并发线程基础.处理不可中断的阻塞;

import java.util.concurrent.Callable;
import java.util.concurrent.RunnableFuture;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2022-04-06 22:20
 **/
public interface CancellableTask<T> extends Callable<T> {

    void cancel();

    RunnableFuture<T> newTask();
}
